package org.prail;

import javax.swing.JOptionPane;
import javax.swing.UIManager;

import org.prail.net.Updater;
import org.prail.settings.Settings;
import org.prail.ui.LoginFrame;

/**
 * 
 * @author Clisprail, Parnassian
 *
 */
public class Boot {
	
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			if(Updater.newVersion()) {
				JOptionPane.showMessageDialog(null, "Please update this program.", "Update available!", JOptionPane.INFORMATION_MESSAGE);
				return;
			}
			Settings.load();
			new LoginFrame().setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
